package indigo.config
{
	public class ArrayProperty extends CollectionProperty
	{
		
		public function ArrayProperty(name:String=null, value:*=null)
		{
			super(name, value);
		}
		
		public override function initialize(initiator:IInitiator):void {
			var items:Array = value;
			var tmp:Array = [];
			for each(var item:* in items) {
				if(item is ReferenceValue) {
					tmp.push(initiator.factory.getObject(item.name));
				} else {
					tmp.push(item);
				}
			}
			_value = tmp;
			initiator.visit(this);
		}
	}
}